package pieces;

import java.util.ArrayList;
import model.*;

public class Bishop extends SideMover
{
	public Bishop(Location loc, GridGame<Piece> grid, int color)
	{
		super(loc, grid, BISHOP, color);
	}
	@Override
	public ArrayList<Location> getMoveLocations()
	{
		ArrayList<Location> locs = new ArrayList<Location>();
		locs.addAll(getLocationsInDirection(Location.NORTHEAST));
		locs.addAll(getLocationsInDirection(Location.NORTHWEST));
		locs.addAll(getLocationsInDirection(Location.SOUTHEAST));
		locs.addAll(getLocationsInDirection(Location.SOUTHWEST));
		return locs;
	}
	@Override
	public int getValue()
	{
		return BISHOP_VALUE;
	}
}
